/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.jpa;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import net.easoftware.code.beans.maintenance.annotation.DataTableColumn;
import org.eclipse.persistence.annotations.NamedStoredProcedureQuery;

/**
 *
 * @author waumovil-javaengineer
 */
@Entity
@Table(name = "chequerechazadoca_store")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ChequerechazadocaStore.findAll", query = "SELECT c FROM ChequerechazadocaStore c"),
    @NamedQuery(name = "ChequerechazadocaStore.findById", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.id = :id"),
    @NamedQuery(name = "ChequerechazadocaStore.findByCompania", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.compania = :compania"),
    @NamedQuery(name = "ChequerechazadocaStore.findByCodigo", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.codigo = :codigo"),
    @NamedQuery(name = "ChequerechazadocaStore.findByCliente", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.cliente = :cliente"),
    @NamedQuery(name = "ChequerechazadocaStore.findByTipodocto", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.tipodocto = :tipodocto"),
    @NamedQuery(name = "ChequerechazadocaStore.findByDocumento", query = "SELECT c FROM ChequerechazadocaStore c WHERE c.documento = :documento")})
@NamedStoredProcedureQuery(  
    name = "procesarChequesRechazados",
procedureName = "procesarChequesRechazados",
returnsResultSet = false)
public class ChequerechazadocaStore implements Serializable {

    @Column(name = "lineanegocio")
    private int lineanegocio;
    @Column(name = "unidadnegocio")
    private int unidadnegocio;
    @Column(name = "ccco")
    private String ccco;
    @Column(name = "rpan8")
    private String rpan8;
    @Column(name = "rpna809")
    private String rpna809;
    @Column(name = "rpdctm")
    private String rpdctm;
    @Column(name = "rdocm")
    private String rdocm;
    @Column(name = "rpag")
    private String rpag;
    @Column(name = "rpdct")
    private String rpdct;
    @Column(name = "rpdoc")
    private String rpdoc;
    @Column(name = "rpdivj")
    private String rpdivj;
    @Column(name = "rppn")
    private String rppn;
    @Column(name = "rpfy")
    private String rpfy;
    @Column(name = "rpac02")
    private String rpac02;
    @Column(name = "rpdmtj")
    private String rpdmtj;
    @Column(name = "rpdgj")
    private String rpdgj;
    @Column(name = "rprmk")
    private String rprmk;
    @Column(name = "rpac05")
    private String rpac05;
    @Column(name = "rptorg")
    private String rptorg;
    @Column(name = "rpglba")
    private String rpglba;
    @Column(name = "a5acl")
    private String a5acl;
    @Column(name = "a5trar")
    private String a5trar;
    @Column(name = "a5trar01")
    private String a5trar01;
    @Column(name = "hohcod")
    private String hohcod;
    @Column(name = "sddoco")
    private String sddoco;
    @Column(name = "ho")
    private String ho;
    @Column(name = "litm")
    private String litm;
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @JoinColumn(name = "cargadatos", referencedColumnName = "id")
    @ManyToOne(optional = false)
    private Cargadatos cargadatos;
    @DataTableColumn(order = 1, title = "Compania", name = "compania")
    @Column(name = "compania")
    private Integer compania;
    @DataTableColumn(order = 2, title = "Codigo", name = "rpan8")
    @Column(name = "codigo")
    private Integer codigo;
    @DataTableColumn(order = 3, title = "Cliente", name = "cliente")
    @Column(name = "cliente")
    private String cliente;
    @DataTableColumn(order = 4, title = "Tipo Documento", name = "tipodocto")
    @Column(name = "tipodocto")
    private String tipodocto;
    @Column(name = "documento")
    @DataTableColumn(order = 5, title = "Documento", name = "documento")
    private String documento;

    public ChequerechazadocaStore() {
    }

    public ChequerechazadocaStore(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Cargadatos getCargadatos() {
        return cargadatos;
    }

    public void setCargadatos(Cargadatos cargadatos) {
        this.cargadatos = cargadatos;
    }

    public Integer getCompania() {
        return compania;
    }

    public void setCompania(Integer compania) {
        this.compania = compania;
    }

    public Integer getCodigo() {
        return codigo;
    }

    public void setCodigo(Integer codigo) {
        this.codigo = codigo;
    }

    public String getCliente() {
        return cliente;
    }

    public void setCliente(String cliente) {
        this.cliente = cliente;
    }

    public String getTipodocto() {
        return tipodocto;
    }

    public void setTipodocto(String tipodocto) {
        this.tipodocto = tipodocto;
    }

    public String getDocumento() {
        return documento;
    }

    public void setDocumento(String documento) {
        this.documento = documento;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += ( id != null ? id.hashCode() : 0 );
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!( object instanceof ChequerechazadocaStore )) {
            return false;
        }
        ChequerechazadocaStore other = (ChequerechazadocaStore) object;
        if (( this.id == null && other.id != null ) || ( this.id != null && !this.id.equals(other.id) )) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "net.easoftware.code.beans.jpa.ChequerechazadocaStore[ id=" + id + " ]";
    }

    public String getCcco() {
        return ccco;
    }

    public void setCcco(String ccco) {
        this.ccco = ccco;
    }

    public String getRpan8() {
        return rpan8;
    }

    public void setRpan8(String rpan8) {
        this.rpan8 = rpan8;
    }

    public String getRpna809() {
        return rpna809;
    }

    public void setRpna809(String rpna809) {
        this.rpna809 = rpna809;
    }

    public String getRpdctm() {
        return rpdctm;
    }

    public void setRpdctm(String rpdctm) {
        this.rpdctm = rpdctm;
    }

    public String getRdocm() {
        return rdocm;
    }

    public void setRdocm(String rdocm) {
        this.rdocm = rdocm;
    }

    public String getRpag() {
        return rpag;
    }

    public void setRpag(String rpag) {
        this.rpag = rpag;
    }

    public String getRpdct() {
        return rpdct;
    }

    public void setRpdct(String rpdct) {
        this.rpdct = rpdct;
    }

    public String getRpdoc() {
        return rpdoc;
    }

    public void setRpdoc(String rpdoc) {
        this.rpdoc = rpdoc;
    }

    public String getRpdivj() {
        return rpdivj;
    }

    public void setRpdivj(String rpdivj) {
        this.rpdivj = rpdivj;
    }

    public String getRppn() {
        return rppn;
    }

    public void setRppn(String rppn) {
        this.rppn = rppn;
    }

    public String getRpfy() {
        return rpfy;
    }

    public void setRpfy(String rpfy) {
        this.rpfy = rpfy;
    }

    public String getRpac02() {
        return rpac02;
    }

    public void setRpac02(String rpac02) {
        this.rpac02 = rpac02;
    }

    public String getRpdmtj() {
        return rpdmtj;
    }

    public void setRpdmtj(String rpdmtj) {
        this.rpdmtj = rpdmtj;
    }

    public String getRpdgj() {
        return rpdgj;
    }

    public void setRpdgj(String rpdgj) {
        this.rpdgj = rpdgj;
    }

    public String getRprmk() {
        return rprmk;
    }

    public void setRprmk(String rprmk) {
        this.rprmk = rprmk;
    }

    public String getRpac05() {
        return rpac05;
    }

    public void setRpac05(String rpac05) {
        this.rpac05 = rpac05;
    }

    public String getRptorg() {
        return rptorg;
    }

    public void setRptorg(String rptorg) {
        this.rptorg = rptorg;
    }

    public String getRpglba() {
        return rpglba;
    }

    public void setRpglba(String rpglba) {
        this.rpglba = rpglba;
    }

    public String getA5acl() {
        return a5acl;
    }

    public void setA5acl(String a5acl) {
        this.a5acl = a5acl;
    }

    public String getA5trar() {
        return a5trar;
    }

    public void setA5trar(String a5trar) {
        this.a5trar = a5trar;
    }

    public String getA5trar01() {
        return a5trar01;
    }

    public void setA5trar01(String a5trar01) {
        this.a5trar01 = a5trar01;
    }

    public String getHohcod() {
        return hohcod;
    }

    public void setHohcod(String hohcod) {
        this.hohcod = hohcod;
    }

    public String getSddoco() {
        return sddoco;
    }

    public void setSddoco(String sddoco) {
        this.sddoco = sddoco;
    }

    public String getHo() {
        return ho;
    }

    public void setHo(String ho) {
        this.ho = ho;
    }

    public String getLitm() {
        return litm;
    }

    public void setLitm(String litm) {
        this.litm = litm;
    }

    public int getLineanegocio() {
        return lineanegocio;
    }

    public void setLineanegocio(int lineanegocio) {
        this.lineanegocio = lineanegocio;
    }

    public int getUnidadnegocio() {
        return unidadnegocio;
    }

    public void setUnidadnegocio(int unidadnegocio) {
        this.unidadnegocio = unidadnegocio;
    }
}
